package ProxyPattern;

public class HouseOwner implements HouseRent{
    private String name;

    public HouseOwner(String name) {
        this.name = name;
    }

    @Override
    public void rentHouse() {
        System.out.println("我是屋主,我要出租房子~");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
